home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1383 < prev    next >
Encoding:
Text File  |  1996-08-05  |  897 b   |  28 lines

  1. Newsgroups: comp.lang.c,comp.unix.programmer,comp.unix.questions,comp.unix.misc
  2. Path: novice.uwaterloo.ca!jching
  3. From: jching@novice.uwaterloo.ca (Jonathan Ching)
  4. Subject: Passing arguments when debugging with dbx
  5. Sender: news@novice.uwaterloo.ca (Mr. News)
  6. Message-ID: <DL2vJ6.M2F@novice.uwaterloo.ca>
  7. Date: Fri, 12 Jan 1996 17:06:41 GMT
  8. Nntp-Posting-Host: novice.uwaterloo.ca
  9. Organization: University of Waterloo
  10.  
  11. Hi,
  12.  
  13. I was wondering how you go about passing arguments into my program if
  14. I'm debugging it with dbx?  I've read the man pages and I still can't 
  15. figure it out, unless I missed it.
  16.  
  17. For example, if my program takes two arguments like:
  18.  
  19. myprogram arg1 arg2
  20.  
  21. How would I put arg1 and arg2 on the command line when I invoke dbx without
  22. dbx thinking that they were arguments for dbx?
  23.  
  24. I've tried using "assign" after I start dbx, but it causes a lot of type errors.
  25.  
  26. Can anyone help?
  27.  
  28.